import Vue from "vue";
const cangpei_userModules = {
  state: {
    currentConversation: {},
    myInfo: {},
    cangpei_param_gcd: "", // 群id
    cangpei_param_ccd: "", // 客服id
    cangpei_param_ucd: "", // 自己的id
  },
  getters: {
    currentConversation: (state) => state.currentConversation,
    myInfo: (state) => state.myInfo,
    cangpei_param_gcd: (state) => state.cangpei_param_gcd,
    cangpei_param_ccd: (state) => state.cangpei_param_ccd,
    cangpei_param_ucd: (state) => state.cangpei_param_ucd,
  },
  mutations: {
    set_currentConversation(state, payload) {
      state.currentConversation = payload;
    },
    set_myInfo(state, payload) {
      state.myInfo = payload;
    },
    set_cangpei_param_gcd(state, payload) {
      state.cangpei_param_gcd = payload;
    },
    set_cangpei_param_ccd(state, payload) {
      state.cangpei_param_ccd = payload;
    },
    set_cangpei_param_ucd(state, payload) {
      state.cangpei_param_ucd = payload;
    },
  },
};

export default cangpei_userModules;
